<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <div class="alert alert-warning" style="margin: 0 0 5px 0;">
        <p>作用说明：设置此IP白名单，可以登录稳定服；</p>
        <p>您当前IP：{$ip}</p>
    </div>

     <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('player_manage/setwhiteip')}">
        <div class="form-group">
            <label for="input-content" class="col-sm-2 control-label"><span class="form-required">*</span>ip</label>
            <div class="col-md-6 col-sm-10">
                <input class="form-control" id="input-content" name="ip" data-rule-required="true" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">提交</button>
            </div>
        </div>
    </form>
    <form class="search_form" method="get" action="">
        
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">IP</th>
                <th align="center">IP地址</th>
                
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo}</td>
                    <td>{:getIpFromAddress($vo)}</td>
                   
                </tr>
            </foreach>
            </tbody>
        </table>
    
    </form>
</div>
<include file="public@footer" />
<script type="text/javascript">
    $(".doForbidLock").on("click",function(){
        var ip = $("input[name=ip]").val();
        if(ip == ''){
            dialogAlert("face-sad","ip不能为空");
            return ;
        }
        doForbidLock("lock_ip",ip,$(this).data("url"));
    });
</script>